package com.pq.service.order;

import com.pq.pojo.order.OrderCart;
import com.pq.vo.SysResult;

import java.util.List;
import java.util.Map;

public interface OrderCartService {
    List<OrderCart> findOrderCartByUserId(Integer userId, Integer flag, List<Long> orderCartIds);

    SysResult updateOrderCartCountsByCartId(Integer productCounts, Integer cartId, Integer userId);

    List<OrderCart> findOrderCartByProductId(Integer userId, Integer productId);

    SysResult updateOrderCartFlagByCartId(Long orderCartId, Integer userId);

    SysResult updateOrderCartFlagByCartIds(Integer userId, List<Long> orderCartIds);

    int deleteByCartId(Long cartId);
}
